IF exists (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'[dbo].[SelectProductoDepartamento]') AND OBJECTPROPERTY(id, N'IsProcedure') = 1)
	DROP PROCEDURE [dbo].[SelectProductoDepartamento]
GO

CREATE PROCEDURE [dbo].[SelectProductoDepartamento]
(
	@IdProducto int,
	@IdDepartamento int
)
AS
BEGIN
	SET NOCOUNT ON

	SELECT
	[IdProducto],
	[IdDepartamento],
	[Stock],
	[Precio],
	[Estado]
	FROM [ProductoDepartamento]
	WHERE [IdProducto] = @IdProducto AND [IdDepartamento] = @IdDepartamento

	SET NOCOUNT OFF
END

GO
